package com.bjpowernode.web.controller;

import com.bjpowernode.api.service.*;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.data.redis.core.StringRedisTemplate;

import javax.annotation.Resource;

/**
 * @description:
 * @author: panDeng_Zhu
 * @time: 2022/10/24 14:42
 */


public class BaseController {

    //定义远程对象
    //平台信息服务
    @DubboReference(interfaceClass = PlatformInfoService.class, version = "1.0")
    protected PlatformInfoService platformInfoService;

    //产品服务
    @DubboReference(interfaceClass = ProductService.class, version = "1.0")
    protected ProductService productService;

    //投资服务
    @DubboReference(interfaceClass = InvestService.class, version = "1.0")
    protected InvestService investService;

    //用户服务
    @DubboReference(interfaceClass = UserService.class,version = "1.0")
    protected UserService userService;

    //注册stringRedisTemplate对象
    @Resource
    protected StringRedisTemplate stringRedisTemplate;

    //收益服务
    @DubboReference(interfaceClass = IncomeService.class,version = "1.0")
    protected IncomeService incomeService;

    //充值服务
    @DubboReference(interfaceClass =RechargeService.class,version = "1.0")
    protected RechargeService rechargeService;

}
